package com.lyf.boot.listener.event;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author Luyufan
 * @date 2023/7/6 16:06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginEvent implements Serializable {

    @Serial
    private static final long serialVersionUID = 4260319229572153917L;

    private Long userId;

    private String ipAddr;

    private LocalDateTime loginTime;

    private String userAgent;

}
